package com.ly.springsolrtest.springsolr;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.solr.repository.config.EnableSolrRepositories;

@SpringBootApplication
@EnableSolrRepositories("com.ly.springsolrtest.springsolr.dao")
@Configuration
public class SpringsolrApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringsolrApplication.class, args);
    }

//    @Bean
//    public HttpSolrClient solrClient() {
//        return new HttpSolrClient("http://127.0.0.1:8983/solr/core3");
//    }
//
//    @Bean
//    public HttpSolrClient solrClient2() {
//        return new HttpSolrClient("http://127.0.0.1:8983/solr/core2");
//    }
}
